<?php 
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login-Administrator</title>
</head>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<link href="css/login-box.css" rel="stylesheet" type="text/css" />
<body>

<form id="login-box" name="login-box" class="login-popup" style="display:block" method="post" action="process/processLogin.php">
<H2>Login</H2>
<div id="status" style="color:#F00;"></div>
<br />
<br />
<div id="login-box-name" style="margin-top:20px;">User name:</div><div id="login-box-field" style="margin-top:20px;"><input id="usr" name="usr" class="form-login" placeholder="tên đăng nhập" title="Username" value="" size="30" maxlength="2048" /></div>
<div id="login-box-name">Password:</div><div id="login-box-field"><input name="pwd" id="pwd" type="password" class="form-login" title="Password" value="" placeholder="********" size="30" maxlength="2048" /></div>
<br />
<span class="login-box-options"><input type="checkbox" name="1" value="1"> Remember Me <a href="#" style="margin-left:30px;">Forgot password?</a></span>
<br />
<br />
<input type="image"  src="images/login-btn.png" style="margin-left:90px;"  width="103" height="42" />

</form>
<div id="login-response"></div>
<?php if(isset($_SESSION["login"]) && $_SESSION["login"]==0)
{
	?>
    <script src="../js/jquery-1.7.2.min.js"></script>

	<script>
	 jQuery(document).ready(function($) {
        document.getElementById("status").innerHTML = "Sai user name hoặc password!"
    });
	
	</script>
	<?php
}?>
</body>
</html>